var socket = io();
var editor
$(function () {
    editor = ace.edit("editor");
    editor.setTheme("ace/theme/tomorrow");
    editor.getSession().setMode("ace/mode/java");
});


socket.on('receive', function (msg) {
    $(".ace_text-layer").text(msg);
});


function send() {

    //alert("11");
    socket.emit('send', $(".ace_text-layer").text());

}